package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.SysSigninWorksite;
import com.ruoyi.system.mapper.SysSigninWorksiteMapper;
import com.ruoyi.system.service.ISysSigninWorksiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 工作现场签到记录Service业务层处理
 * 
 * @author yfkj
 * @date 2022-03-22
 */
@Service
public class SysSigninWorksiteServiceImpl extends ServiceImpl<SysSigninWorksiteMapper, SysSigninWorksite>  implements ISysSigninWorksiteService
{
    @Autowired
    private SysSigninWorksiteMapper sysSigninWorksiteMapper;

    /**
     * 查询工作现场签到记录
     * 
     * @param signinWorksiteId 工作现场签到记录主键
     * @return 工作现场签到记录
     */
    @Override
    public SysSigninWorksite selectSysSigninWorksiteBySigninWorksiteId(Long signinWorksiteId)
    {
        return sysSigninWorksiteMapper.selectSysSigninWorksiteBySigninWorksiteId(signinWorksiteId);
    }

    /**
     * 查询工作现场签到记录列表
     * 
     * @param sysSigninWorksite 工作现场签到记录
     * @return 工作现场签到记录
     */
    @Override
    public List<SysSigninWorksite> selectSysSigninWorksiteList(SysSigninWorksite sysSigninWorksite)
    {
        return sysSigninWorksiteMapper.selectSysSigninWorksiteList(sysSigninWorksite);
    }

    /**
     * 新增工作现场签到记录
     * 
     * @param sysSigninWorksite 工作现场签到记录
     * @return 结果
     */
    @Override
    public int insertSysSigninWorksite(SysSigninWorksite sysSigninWorksite)
    {
        return sysSigninWorksiteMapper.insertSysSigninWorksite(sysSigninWorksite);
    }

    /**
     * 修改工作现场签到记录
     * 
     * @param sysSigninWorksite 工作现场签到记录
     * @return 结果
     */
    @Override
    public int updateSysSigninWorksite(SysSigninWorksite sysSigninWorksite)
    {
        return sysSigninWorksiteMapper.updateSysSigninWorksite(sysSigninWorksite);
    }

    /**
     * 批量删除工作现场签到记录
     * 
     * @param signinWorksiteIds 需要删除的工作现场签到记录主键
     * @return 结果
     */
    @Override
    public int deleteSysSigninWorksiteBySigninWorksiteIds(Long[] signinWorksiteIds)
    {
        return sysSigninWorksiteMapper.deleteSysSigninWorksiteBySigninWorksiteIds(signinWorksiteIds);
    }

    /**
     * 删除工作现场签到记录信息
     * 
     * @param signinWorksiteId 工作现场签到记录主键
     * @return 结果
     */
    @Override
    public int deleteSysSigninWorksiteBySigninWorksiteId(Long signinWorksiteId)
    {
        return sysSigninWorksiteMapper.deleteSysSigninWorksiteBySigninWorksiteId(signinWorksiteId);
    }
}
